import React from 'react';
import { connect } from 'dva';
import AffixMenuComponent from '../../components/Common/AffixMenu';

function AffixMenu({ dispatch, app, ...props }) {
  const AffixMenuProps = {
    ...props,
    app,
  };

  return (
    <AffixMenuComponent {...AffixMenuProps} />
  );
}

export default connect(({ app }) =>
  ({ app }))(AffixMenu);
